package com.itheima;
public class Player extends Person {
//        行为：吃饭(吃营养餐)
    private String className;
    @Override
    public void eat() {
        System.out.println("运动员吃营养餐");
    }

    public Player() {
    }

    public Player(String id, String name, String gender, int age, String className) {
        super(id, name, gender, age);
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
